<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付通知</title>
</head>
<body>

<div id="app">

</div>

</body>
<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<!--引入 element-ui 的样式，-->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 必须先引入vue，  后使用element-ui -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
<!-- 引入element 的组件库-->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>

    var v=new Vue({
        el:"#app",
        data:{

        },
        methods:{
            addCourse:function (id) {
                axios.get("/api/education-user/eduUserCourse/addSave/"+id).then((res)=>{
                    debugger
                    if(res.data.success){
                        alert(res.data.message)
                        location.href="coursecont1.html?id="+id;
                    }else{
                        alert(res.data.message)
                    }
                })
            }
        },
        mounted(){
            var fulPath=window.location.search;
            var uri=fulPath.split("?")[1]
            axios.get("/api/education-order/eduPayLog/checkSign?"+uri).then((res)=>{
                debugger
                this.$message({
                    showClose: true,
                    message: res.data.message,
                    type: 'success'
                });
                debugger
                this.addCourse(res.data.result);

            })
        },
    })


</script>

</html>
